<? global $cat1,$cat2, $lg; 
	//echo $act;
?>

<div class="main">
  <div class="main-body">
    <div class="componentheading"> <?=$title_bar;?> </div>
   	<div class="sub-content">
      
      <ul>
      <? if($submenus){ ?>
                <?		
                    global $lg, $prefix_url, $FullUrl, $num_of_result;
                        $n = count($submenus);
                ?>
                <?
			for($i=0;$i<$n; $i++){
				$item = $submenus[$i];
				$link = $FullUrl . $prefix_url . $cat1["unique_key_$lg"] . "/" . $item["unique_key_$lg"] . "/";
				$name = $item['unique_key_'.$lg];
				
				$rs = $item['img'];
				
				$url_img = GetImage($rs);
				$w = 164;
				$h = 164;
				$sizes = fixSize($url_img , $w, $h);
				if(!empty($name) && $name != ''){								
		?>
      	<li class=""> 
        
        <span class=""> <a href="<?=$link;?>"><img src="<?=GetPHPThumb($url_img, 164, 164);?>" alt="<?=$item["unique_key_".$lg];?>" title="<?=$item["unique_key_".$lg];?>" style="margin-top:<? echo ImageCenter($sizes['height'], $h)?>px;margin-left:<?=ImageCenterHorizontal($sizes['width'], 164)?>px"></a> </span>
          <div class="">
            <h3><a href="<?=$link;?>"><?=$item['name_'.$lg]?$item['name_'.$lg]:NO_NEWS?></a></h3>
          </div>
        </li>
        <?
	  	}}
	  ?>
                <? }else{
			print('<div class="updating">'.NO_NEWS.'</div>');
		} ?> 
      	</ul>
      
    </div>
    <div class="clr"> </div>
    
  </div>
</div>
